﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;

namespace OpenApi.Samples
{
	[ServiceContract(Name = "demo")]
	public interface IDemoService
	{

		[OperationContract]
		[WebGet]
		void A();

		[OperationContract]
		[WebGet(UriTemplate = "b?x={x}")]
		string B(string x);

		[OperationContract]
		[WebGet(UriTemplate = "plus?x={x}&y={y}")]
		double Plus(double x, double y);
	}
}
